package com.ljb.webviewdemo;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.ljb.webviewdemo.crosswalk.CrossWalkActivity;
import com.ljb.webviewdemo.webview.WebViewActivity;
import com.ljb.webviewdemo.x5.BrowserActivity;

/**
 * @author ljb
 * @des
 * @date 2019/1/22
 */
public class MainActivity extends AppCompatActivity {
    //测试地址
//    String url = "http://111.47.198.78:335/FineBI/ReportServer?reportlet=WorkBook2.cpt";
    String url = "http://111.47.198.78:335/FineBI/ReportServer?reportlet=QDSDReport%2Freport%2Fenergy_consumption_show.cpt&USER_ID=3M2vWpm6Jd";

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void onClick(View v) {
        switch (v.getId()) {
//            case R.id.bt1:
//                BrowserActivity.actionStart(this, url);
//                break;
//            case R.id.bt2:
//                CrossWalkActivity.actionStart(this, url);
//                break;
            case R.id.bt3:
                WebViewActivity.actionStart(this, url);
                break;

        }
    }
}
